﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class EarningsBLL
    {
       EarningsDAL dal = new EarningsDAL();
       /// <summary>
       /// 加入
       /// </summary>
       /// <returns></returns>
       public List<Earnings> ShowEarnings()
       {
           return dal.ShowEarnings();

       }
        /// <summary>
        /// 删除信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       public int DeleteEarnings(int id)
       {
           return dal.DeleteEarnings(id);
       }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Earnings_Add(Model.Earnings p)
       {
          return dal.Earnings_Add(p);
       }
       /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public Earnings ShowEarningsX(int id)
       {
           return dal.ShowEarningsX(id);
       }
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateEarnings(Earnings data)
       {
           return dal.UpdateEarnings(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<Earnings> SeleteEarningst(string name)
       {
           return dal.SeleteEarningst(name);
       }
    }
}
